package File;

import java.io.File;

public class Test06 {
    public static void main(String[] args) {
        File dir =new File(".");
        if (dir.isDirectory()){
            File[]subs=dir.listFiles();
            for (File sub:subs){
                if (sub.isFile()){
                    System.out.println("文件:");
                }else {
                    System.out.println("m目录:");
                }
                System.out.println(sub.getName());
            }
        }
    }
}
